package com.taobao.api.request;

import com.taobao.api.internal.mapping.ApiField;
import com.taobao.api.TaobaoObject;
import java.util.Map;

import com.taobao.api.ApiRuleException;
import com.taobao.api.BaseTaobaoRequest;
import com.taobao.api.internal.util.TaobaoHashMap;
import com.taobao.api.internal.util.json.JSONWriter;
import com.taobao.api.response.CainiaoSmartdeliveryCpIModifyResponse;

/**
 * TOP API: cainiao.smartdelivery.cp.i.modify request
 * 
 * @author top auto create
 * @since 1.0, 2018.07.25
 */
public class CainiaoSmartdeliveryCpIModifyRequest extends BaseTaobaoRequest<CainiaoSmartdeliveryCpIModifyResponse> {
	
	

	/** 
	* 修改智选CP请求
	 */
	private String modifySmartDeliveryCpRequest;

	public void setModifySmartDeliveryCpRequest(String modifySmartDeliveryCpRequest) {
		this.modifySmartDeliveryCpRequest = modifySmartDeliveryCpRequest;
	}

	public void setModifySmartDeliveryCpRequest(ModifySmartDeliveryCpRequest modifySmartDeliveryCpRequest) {
		this.modifySmartDeliveryCpRequest = new JSONWriter(false,true).write(modifySmartDeliveryCpRequest);
	}

	public String getModifySmartDeliveryCpRequest() {
		return this.modifySmartDeliveryCpRequest;
	}

	public String getApiMethodName() {
		return "cainiao.smartdelivery.cp.i.modify";
	}

	public Map<String, String> getTextParams() {		
		TaobaoHashMap txtParams = new TaobaoHashMap();
		txtParams.put("modify_smart_delivery_cp_request", this.modifySmartDeliveryCpRequest);
		if(this.udfParams != null) {
			txtParams.putAll(this.udfParams);
		}
		return txtParams;
	}

	public Class<CainiaoSmartdeliveryCpIModifyResponse> getResponseClass() {
		return CainiaoSmartdeliveryCpIModifyResponse.class;
	}

	public void check() throws ApiRuleException {
	}
	
	/**
 * 修改智选CP请求
 *
 * @author top auto create
 * @since 1.0, null
 */
public static class ModifySmartDeliveryCpRequest extends TaobaoObject {

	private static final long serialVersionUID = 4247466477349545915L;

	/**
		 * 修改的物流公司编码
		 */
		@ApiField("modified_cp_code")
		private String modifiedCpCode;
		/**
		 * 原有的物流公司编码
		 */
		@ApiField("origin_cp_code")
		private String originCpCode;
		/**
		 * 电子面单号
		 */
		@ApiField("waybill_code")
		private String waybillCode;
	

	public String getModifiedCpCode() {
			return this.modifiedCpCode;
		}
		public void setModifiedCpCode(String modifiedCpCode) {
			this.modifiedCpCode = modifiedCpCode;
		}
		public String getOriginCpCode() {
			return this.originCpCode;
		}
		public void setOriginCpCode(String originCpCode) {
			this.originCpCode = originCpCode;
		}
		public String getWaybillCode() {
			return this.waybillCode;
		}
		public void setWaybillCode(String waybillCode) {
			this.waybillCode = waybillCode;
		}

}


}